<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改会议')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-conference-edit" th:object="${conference}">
            <input name="conId" th:field="*{conId}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">创建人;创建人：</label>
                    <div class="col-sm-8">
                        <input name="createdBy" th:field="*{createdBy}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">创建时间;创建时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="createdTime" th:value="${#dates.format(conference.createdTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">更新人;更新人：</label>
                    <div class="col-sm-8">
                        <input name="updatedBy" th:field="*{updatedBy}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">更新时间;更新时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="updatedTime" th:value="${#dates.format(conference.updatedTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">删除标识;删除标识:0:未删除;1:已删除：</label>
                    <div class="col-sm-8">
                        <input name="isDelete" th:field="*{isDelete}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">会议名称;会议名称：</label>
                    <div class="col-sm-8">
                        <input name="conName" th:field="*{conName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">会议开始时间;会议开始时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="conStartTime" th:value="${#dates.format(conference.conStartTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">会议结束时间;会议结束时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="conEndTime" th:value="${#dates.format(conference.conEndTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">会议状态：</label>
                    <div class="col-sm-8">
<!--                        <input name="conState" th:field="*{conState}" class="form-control" type="text">-->
                        <select name="conState" th:with="type=${@dict.getType('con_state')} " class="form-control">
<!--                            <option value="">所有</option>-->
                            <option th:field="*{conState}" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue} ">
                            </option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">会议排序;会议排序：</label>
                    <div class="col-sm-8">
                        <input name="conSort" th:field="*{conSort}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">会议密码;会议密码：</label>
                    <div class="col-sm-8">
                        <input name="conPassworrd" th:field="*{conPassworrd}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">参会人员;参会人员：</label>
                    <div class="col-sm-8">
                        <input name="conUserId" th:field="*{conUserId}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/conference";
        $("#form-conference-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-conference-edit').serialize());
            }
        }

        $("input[name='createdTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='updatedTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='conStartTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='conEndTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>